#!/bin/sh

[ ! -d "$1" ] && echo "$1 does not exist" && exit 1

pwd=$(pwd)
cd "$1"
deflac . -b320
rm *.flac *.cue *.log
cd $pwd
